package com.xiaoc.bulldozer.common.service.impl;

import java.util.List;
import java.util.Date;
import java.util.Set;
import javax.annotation.Resource;

import com.xiaoc.bulldozer.common.dto.WeixinFormIdDto;
import org.springframework.stereotype.Service;
import com.xiaoc.bulldozer.common.dao.WeixinFormIdMapper;
import com.xiaoc.bulldozer.common.dto.WeixinFormIdQueryDto;
import com.xiaoc.bulldozer.common.model.WeixinFormId;
import com.xiaoc.bulldozer.common.service.WeixinFormIdService;

/**
 * WeixinFormId Service 实现类
 *
 * @author Danfo Yam
 * @date 2018-09-26 14:49:59
 */
@Service("weixinFormIdService")
public class WeixinFormIdServiceImpl implements WeixinFormIdService {

    @Resource
    private WeixinFormIdMapper weixinFormIdMapper;

    @Override
    public Integer getWeixinFormIdCountByCondition(WeixinFormIdQueryDto weixinFormIdQueryDto) {
        return weixinFormIdMapper.getWeixinFormIdCountByCondition(weixinFormIdQueryDto);
    }

    @Override
    public List<WeixinFormId> getWeixinFormIdListByCondition(WeixinFormIdQueryDto weixinFormIdQueryDto) {
        return weixinFormIdMapper.getWeixinFormIdListByCondition(weixinFormIdQueryDto);
    }

    @Override
    public WeixinFormId getWeixinFormIdById(Integer id) {
        return weixinFormIdMapper.getWeixinFormIdById(id);
    }

    @Override
    public List<WeixinFormId> getAllWeixinFormIdList() {
        return weixinFormIdMapper.getAllWeixinFormIdList();
    }

    @Override
    public void save(WeixinFormId weixinFormId) {
        weixinFormIdMapper.save(weixinFormId);
    }

    @Override
    public void update(WeixinFormId weixinFormId) {
        weixinFormIdMapper.update(weixinFormId);
    }

    @Override
    public void deleteById(Integer id) {
        weixinFormIdMapper.deleteById(id);
    }

    @Override
    public List<WeixinFormId> getWeixinFormIdListByStatusAndCreateTime(Integer status, Long createTime) {
        return weixinFormIdMapper.getWeixinFormIdListByStatusAndCreateTime(status, createTime);
    }

    @Override
    public void updateStatus(WeixinFormId weixinFormId) {
        weixinFormIdMapper.updateStatus(weixinFormId);
    }


    @Override
    public List<Integer> getUserIdListNoLoan(Set<Integer> userIdList) {
        return weixinFormIdMapper.getUserIdListNoLoan(userIdList);
    }

    @Override
    public void updateTimeoutStatus(WeixinFormId weixinFormId) {
        weixinFormIdMapper.updateTimeoutStatus(weixinFormId);
    }

    @Override
    public List<WeixinFormIdDto> getWeixinFormIdListByPhoneNumberSet(Set<String> phoneNumberSet) {
        return weixinFormIdMapper.getWeixinFormIdListByPhoneNumberSet(phoneNumberSet);
    }

    @Override
    public void updateStatusBatch(List<WeixinFormIdDto> weixinFormIdDtoList, Integer status, long updateTime) {
        weixinFormIdMapper.updateStatusBatch(weixinFormIdDtoList, status, updateTime);
    }
}
